package edu.whut.test;

import java.util.Scanner;

/*
统计大写，小写，数字的个数
 */
public class StringTest02 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int c1 = 0,c2=0,c3=0;
        char[] ch = str.toCharArray();
        for (int i = 0; i < ch.length; i++) {
            if(ch[i]>='A'&&ch[i]<='Z') {
                c1++;
            }else if(ch[i]>='a' && ch[i]<='z'){
                c2++;
            }else if(ch[i]>='0' && ch[i]<='9'){
                c3++;
            }else{
                continue;
            }
        }
        System.out.println("大写字母个数为"+c1+",小写字母个数为"+c2+",数字个数为"+c3);
    }
}
